import request from '../utils/request.js';

export const getIndexHome = (params) => {
    return request.post('/api/Index/home', { params });
};

export const getDetails = (params) => {
    return request.post('/api/Index/details', { params });
};


export const getTrendsIndex = (params) => {
    return request.post('/api/Trends/index', { params });
};

export const getTrends = (params) => {
    return request.post('/api/Trends/train', { params });
};

export const getTrendsIssue = (params) => {
    return request.post('/api/Trends/issue', { params });
};

// 公司产品
export const getGoods = (params) => {
    return request.post('/api/Goods/index', { params });
};


// 经典案例
export const getCases = (params) => {
    return request.post('/api/Cases/index', { params });
};

// 新闻中心
export const getNews = (params) => {
    return request.post('/api/News/index', { params });
};

// 新闻详情
export const getDetail = (params) => {
    return request.post('/api/News/details', params);
};

//获取短信验证码
export const getCodeApi = (params) => {
    return request.post('/api/About/sendCode', params);
};

//加入我们
export const joinUs = (params) => {
    return request.post('/api/About/joinUs', params);
};

//案例详情
export const caseDetail = (params) => {
    return request.post('/api/Cases/details', params);
};

// 合作伙伴
export const hezuopartner = (params) => {
    return request.post('/api/Trends/partner', params);
};



//公司产品
export const asssdetails = (params) => {
    return request.post('/api/Goods/details', params);
};

// 案例列表
export const getCaseList = (params) => {
    return request.post('/api/Cases/lists', params);
};

